//
//  UIButton+Extension.swift
//  MySinaWeibo
//
//  Created by eastriver on 16/10/5.
//  Copyright © 2016年 believewilliam. All rights reserved.
//

import UIKit
extension UIButton {
    convenience init(title: String, textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.setTitle(title, for: .normal)
        self.setTitleColor(textColor, for: .normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
        self.sizeToFit()
    }
}
